package com.yjt.fresh.adpater;

import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yjt.fresh.R;
import com.yjt.fresh.bean.BeanOrder;

import java.util.List;

/**
 *
 * Created by mcc on 2018/8/6.
 */

public class AdpRvMyOrderChild extends BaseQuickAdapter<BeanOrder.GOODSBean,BaseViewHolder> {
    public AdpRvMyOrderChild(int layoutResId, @Nullable List<BeanOrder.GOODSBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BeanOrder.GOODSBean item) {
        ImageView iv = helper.getView(R.id.ivAppRecycleItemFrgMyOrderChild);
        Glide.with(mContext).load(item.getSKU_IMG()).into(iv);
    }
}
